03. Sizes Attribute

Sizes Attribute

INSTRUCTOR NOTE:

Examples:


In JavaScript you can get the source of an img element with currentSrc.

The sizes attribute gives the browser information about the display size of an image element – it does not actually cause the image to be resized. That's done in CSS!